/*  ----------------------------------------------------------------------------
*	This file is part of the AS3This ActionScript 3 library.
*	Author: Steve Jones for G-RAFF <http://www.g-raff.com/>
*	Copyright (c) 2009 raffWorks Ltd.
*	----------------------------------------------------------------------------
*	Please see the notice at the bottom of the code before using or modifying this class.
*/
package com.as3this.core
{
	public class Service
	{
		private var _code		:String;
		private var _name		:String;
		private var _iconURL	:String;
		
		/**
		 * Constructor
		 *  
		 *	This is a value object that represents a given service
		 *	
		 * @param code			code for the service - eg. "twitter"
		 * @param name			Name of the service in camel case eg. Twitter
		 * @param iconURL		path to the GIF icon representing this service
		 * 
		 * @see ServiceMetadata
		 */
		
		public function Service(code:String, name:String, iconURL:String)
		{
			_code = code;
			_name = name;
			_iconURL = iconURL;
		}
		
		/**
		* The code for the service eg. "twitter", "facebook"
		*/
		public function get code() : String
		{
			return _code;
		}
		
		/**
		* The name for the service eg. "Twitter", "Facebook"
		*/
		public function get name() : String
		{
			return _name;
		}
		
		/**
		* The path to the GIF icon representing this service
		*/
		public function get iconURL() : String
		{
			return _iconURL;
		}
	}
}
/*
 *    AS3This is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation, either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    AS3This is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with AS3This.  If not, see <http://www.gnu.org/licenses/>.
 */